package classes;

public class Activitat {

	private String nom;
	
	
	public Activitat(String nom) {
		super();
		this.nom = nom;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	@Override
	public boolean equals(Object obj) {
		
		if (obj.getClass()==this.getClass()){
			if ( ((Activitat) obj).getNom() == this.nom){
				return true;
			}
		}
		
		return false;
	}

	@Override
	public String toString() {
		
		return "Activitat: " + nom;
	}
	
	
}
